package com.yanqu.road.server.cmd.activity.fanxiuspring;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.FanxiuspringProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.fanxiuspring.CrossFanXiuSpringActivityMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_FAN_XIU_SPRING_UPLOAD_DRAW_NOTICE, desc = "上传公告")
public class FanXiuSpringUploadDrawNoticeCmd extends CrossCommand {


    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        FanxiuspringProto.FanXiuSpringUploadDrawNoticeMsg noticeMsg = FanxiuspringProto.FanXiuSpringUploadDrawNoticeMsg.parseFrom(packet.getBytes());

        CrossFanXiuSpringActivityMgr.addDrawNotice(noticeMsg.getActivityId(), serverId, packet.getPlayerId(), noticeMsg.getNoticeList());
    }

    @Override
    public void sendData() {

    }
}
